<%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<jsp:useBean id="actionBean" scope="request" type="org.brownflat.lighthouse.web.StatusAction" />

<s:layout-render name="/WEB-INF/jsp/layout-status.jsp" title="${app.title}" subtitle="Status">
        <s:layout-component name="body">
        <table width="100%" height="100%" cellspacing="1" cellpadding="0">
            <c:forEach var="build" items="${actionBean.latestBuilds}">
                <tr>
                    <td bgcolor="${build.broken ? "red" : "green" }" align="center">
                        <span class="${build.broken ? "badBuild" : "goodBuild" }">${build.project} - ${build.name}</span>
                    </td>
                </tr>
            </c:forEach>
        </table>
        </s:layout-component>
</s:layout-render>